package sort;

import java.util.Arrays;

public class SelectSort {
    public static void main(String[] args) {
        SelectSort selectSort = new SelectSort();
        int[] keys = new int[]{38, 97, 26, 19, 38, 15};
        System.out.print("关键字序列：");
        System.out.println(Arrays.toString(keys));
        selectSort.selectSort(keys);
    }

    // 直接选择排序
    public void selectSort(int[] keys) {
        System.out.println("直接选择排序（升序）");

    }
    // 交换数组i,j索引存储的值
    private void swap(int[] keys, int i, int j) {
        int temp = keys[j];
        keys[j] = keys[i];
        keys[i] = temp;
    }
}
